package edu.sdjzu.ex03consumer8002;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class Ex03Consumer8002Application {

    public static void main(String[] args) {

        SpringApplication.run(Ex03Consumer8002Application.class, args);
    }

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() { return new RestTemplate();
    }

}
